package com.study_security.service;

import com.study_security.domain.ResponseResult;
import com.study_security.entity.User;

public interface LoginService {
    ResponseResult login(User user);

    ResponseResult logout();

    ResponseResult register(User user); // 添加注册方法

    ResponseResult sendVerificationCode(String email);

    ResponseResult forgotPassword(String email, String newPassword, String verificationCode);
    // ResponseResult verifyCode(String email, String code);

    // 新增短信相关方法
    ResponseResult registerByPhone(User user); // 短信注册

    ResponseResult sendVerificationCodeByPhone(String phone); // 发送短信验证码

    ResponseResult forgotPasswordByPhone(String phone, String newPassword, String verificationCode); // 短信找回密码
}
